package com.norteksoft.projectname.module1.model;

import java.util.Set;

import org.apache.struts.upload.FormFile;

/**
 * @hibernate.class
 * @author huhc
 *
 */
public class Department {
	private Long id;
	private String name;
	private String remark;
	private Set chief;
	
	/**
	 * @hibernate.set inverse="true" lazy="true" cascade="delete" outer-join="true"
	 * @hibernate.collection-key column="FK_Department_Id"
	 * @hibernate.collection-one-to-many class="com.norteksoft.projectname.module1.model.Person"
	 * @return
	 */
	public Set getChief() {
		return chief;
	}
	
	/**
	 * @hibernate.id generator-class="native"
	 * @return
	 */
	public Long getId() {
		return id;
	}
	
	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getRemark() {
		return remark;
	}
	
	public void setChief(Set chief) {
		this.chief = chief;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	FormFile file;

	public FormFile getFile() {
		return file;
	}

	public void setFile(FormFile file) {
		this.file = file;
	}
}
